﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="denglu.aspx.cs" Inherits="denglu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

.bottom { BORDER-bottom: #3185b1 1px solid}

.br  { BORDER-bottom: #3185b1 1px solid; BORDER-right: #3185b1 1px solid}
.searchButton {
	 BORDER-RIGHT: #333333 1px ridge; PADDING-RIGHT: 1px; BORDER-TOP: #ffffff 1px ridge; PADDING-LEFT: 1px; FONT-SIZE: 9pt; PADDING-BOTTOM: 1px; BORDER-LEFT: #ffffff 1px ridge; CURSOR: hand; COLOR: #000000; PADDING-TOP: 1px; BORDER-BOTTOM: #000000 1px ridge; FONT-FAMILY: "宋体"; BACKGROUND-COLOR: #f1f1f1
}

        .auto-style10 {}
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <table id="Table2" align="center" bgcolor="#d6ebff" border="0" cellpadding="4" cellspacing="0" class="auto-style7" width="280">
        <tr>
            <td align="center" bgcolor="#52beef" class="bottom" colspan="2" height="35">超市销售管理系统登陆</td>
        </tr>
        <tr>
            <td align="center" class="bottom" colspan="2">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SupermarketConnectionString %>" SelectCommand="SELECT [AdminID], [AdminPW] FROM [Admin]"></asp:SqlDataSource>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:SupermarketConnectionString %>" SelectCommand="SELECT [UserID], [UserPW] FROM [UserInfo]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td align="right" class="br" style="HEIGHT: 33px" width="41%">请输入用户名：</td>
            <td align="left" class="bottom" style="HEIGHT: 33px" width="59%">
                <asp:TextBox ID="txtID" runat="server" maxLength="12" Width="145"></asp:TextBox>
                *
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" BorderStyle="None" ControlToValidate="txtID" ErrorMessage="用户名不能为空！"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="br" width="41%">请输入密码：</td>
            <td align="left" class="bottom">
                <asp:TextBox ID="txtPS" runat="server" maxLength="12" TextMode="Password" Width="145px" CssClass="auto-style10" Height="19px"></asp:TextBox>
                *<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" BorderStyle="None" ControlToValidate="txtPS" ErrorMessage="密码不能为空！"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="br" width="41%">请选择身份：</td>
            <td align="left" class="bottom">
                <asp:DropDownList ID="ddlUser" runat="server">
                    <asp:ListItem Value="member" Selected="True">员工</asp:ListItem>
                    <asp:ListItem Value="manager">管理员</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2" height="40">&nbsp;
                <asp:Button ID="btnLogin" runat="server" CssClass="searchButton"  style="MARGIN-RIGHT: 25px" Text="登陆" OnClick="btnLogin_Click" />
                <input id="btnExit" class="searchButton" name="btnExit" onclick="window.close();" type="button" value="退出" /> </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
</asp:Content>

